package com.service.imp;

import com.mapper.FmMapper_x;
import com.pojo.Fm_x;
import com.service.FmService_x;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class FmServiceXImp_x implements FmService_x {
    @Autowired
    private FmMapper_x fmMapperX;
    @Override
    public List<Fm_x> selectAll() {
        return fmMapperX.selectAll();
    }

    @Override
    public Integer add(Fm_x fmX) {
        return fmMapperX.add(fmX);
    }

    @Override
    public Integer update(Fm_x fmX) {
        return fmMapperX.update(fmX);
    }

    @Override
    public Integer delete(Integer id) {
        return fmMapperX.delete(id);
    }

    @Override
    public List<Fm_x> select(Integer id, String title) {
        return fmMapperX.select(id,title);
    }
}
